package com.lovo.service.impl;

import com.lovo.bean.CutPageBean;
import com.lovo.bean.DeptBean;
import com.lovo.dao.IDeptDao;
import com.lovo.dao.impl.DeptDaoImpl;
import com.lovo.service.IDeptService;

import java.util.List;

public class DeptServiceImpl implements IDeptService {
    private IDeptDao deptDao = new DeptDaoImpl();
    @Override
    public List<DeptBean> findAll() {
        return deptDao.findAll();
    }

    @Override
    public CutPageBean<DeptBean> findByItem(int pageNo) {
        return deptDao.findByItem(pageNo);
    }

    @Override
    public void add(DeptBean deptBean) {
        deptDao.add(deptBean);
    }

    @Override
    public void update(DeptBean deptBean) {
        deptDao.update(deptBean);
    }
}
